﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace WindowsGame4
{
    class Frame
    {
        public Texture texture;

        public Frame(Texture texture)
        {
            this.texture = texture;
        }

        public void draw(int posX, int posY)
        {
            Game1.spriteBatch.Begin();
            Game1.spriteBatch.Draw(texture.getTexture(), new Rectangle(posX, posY, texture.getWidth(), texture.getHeight()), Color.White);
            Game1.spriteBatch.End();
        }
    }
}
